package com.zros.modules.business.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lvkai
 * @since 2020-04-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_info_modle")
@ApiModel(value="Modle对象", description="")
public class Modle extends Model<Modle> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "模板编号")
    @TableId(value = "modle_id", type = IdType.AUTO)
    private Long modleId;

    @ApiModelProperty(value = "店铺id")
    private Long shopId;

    @ApiModelProperty(value = "商品链接")
    private String goodsUrl;

    @ApiModelProperty(value = "商品主图地址")
    private String goodsPicUrl;

    @ApiModelProperty(value = "实际交易金额")
    private BigDecimal actSales;

    @ApiModelProperty(value = "需领取优惠卷")
    private BigDecimal couponSales;

    @ApiModelProperty(value = "每单拍下数量")
    private Integer buyNum;

    @ApiModelProperty(value = "指定拍下规格sku")
    @TableField("specs_SKU")
    private String specsSku;

    @ApiModelProperty(value = "放单模式：1-最安全模式；2-高权重模式")
    private String auctionsType;

    @ApiModelProperty(value = "排名方式")
    private String rankMethod;

    @ApiModelProperty(value = "最低价格")
    private BigDecimal floorPrice;

    @ApiModelProperty(value = "最高价格")
    private BigDecimal ceilingPrice;

    @ApiModelProperty(value = "浏览时间----0：不限；1：1-3分钟；2：3-5分钟；3：5-8分钟")
    private String browseTime;

    @ApiModelProperty(value = "加入购物车：0-随机；1-是；2-否")
    private String shopCart;

    @ApiModelProperty(value = "收藏商品：0-随机；1-是；2-否")
    private String collectionGoods;

    @ApiModelProperty(value = "收藏店铺：0-随机；1-是；2-否")
    private String collectionShop;

    @ApiModelProperty(value = "句子1")
    private String sentence01;

    @ApiModelProperty(value = "句子2")
    private String sentence02;

    @ApiModelProperty(value = "句子3")
    private String sentence03;

    @ApiModelProperty(value = "需要假聊：0-随机；1-是；2-否")
    private String falseChat;

    @ApiModelProperty(value = "允许使用商家店铺优惠：1-是；2-否")
    private String allowCoupon;

    @ApiModelProperty(value = "允许使用花呗/信用卡支付：0-随机；1-是；2-否")
    private String allowAliwecPay;

    @ApiModelProperty(value = "其他要求")
    private String otherRequir;

    @ApiModelProperty(value = "模板名称")
    private String modleName;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "1：关键词下单；2：淘口令下单；3：二维码下单")
    private String orderType;

    @ApiModelProperty(value = "淘口令")
    private String orderTaoUrl;

    @ApiModelProperty(value = "二维码图片地址")
    @TableField("order_QR_code_url")
    private String orderQrCodeUrl;

    @ApiModelProperty(value = "模板类别：1-淘宝商家先付；2-淘宝买家垫付")
    private String modleType;

    @ApiModelProperty(value = "淘口令")
    private List<Keyword> keywords;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime creteTime;


    @Override
    protected Serializable pkVal() {
        return this.modleId;
    }

}
